<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %> 

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<!-- RichFaces tag library declaration -->
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<center>
	<f:subview id="editTableCourier" >
		<h:form >
			<rich:dataTable value="#{TaskListBean.dataList}" 
				var="dataItem"
				reRender="ds" id="taskList"
				onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
				onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
				cellpadding="0" cellspacing="0" width="700" border="0" rows="5">

				<f:facet name="header">
					<h:outputText value="Tabela kurierzy" />
				</f:facet>

				<rich:column  sortBy="#{dataItem.identZamowienia}" filterBy="#{dataItem.identZamowienia}" filterEvent="onkeyup">
					<f:facet name="header">
						<h:outputText value="Id zamowienia" />
					</f:facet>
					<h:outputText value="#{dataItem.identZamowienia}" />
				</rich:column>

				<rich:column sortBy="#{dataItem.identPaczki}">
					<f:facet name="header">
						<h:outputText value="Id paczki" />
					</f:facet>
					<h:outputText value="#{dataItem.identPaczki}" />
				</rich:column>

				<rich:column sortBy="#{dataItem.identKuriera}">
					<f:facet name="header" >
						<h:outputText value="Id kuriera" />
					</f:facet>
					<h:outputText value="#{dataItem.identKuriera}" />
				</rich:column>

				<rich:column sortBy="#{dataItem.data}">
					<f:facet name="header">
						<h:outputText value="data" />
					</f:facet>
					<h:outputText value="#{dataItem.data}" />
				</rich:column>

				<rich:column sortBy="#{dataItem.status}">
					<f:facet name="header">
						<h:outputText value="Status" />
					</f:facet>
					<h:outputText value="#{dataItem.status}" />
				</rich:column>

				<rich:column sortBy="#{dataItem.uwagi}">
					<f:facet name="header">
						<h:outputText value="uwagi" />
					</f:facet>
					<h:outputText value="#{dataItem.uwagi}" />
				</rich:column>

				<f:facet name="footer">
					<rich:datascroller id="ds" align="center" for="taskList"
						maxPages="20" />
				</f:facet>
			</rich:dataTable>

 <rich:messages id="mymessages" globalOnly="true" style="color:red" />
		</h:form>
</f:subview>
</center>
